Gom chú thích theo nhóm Bản_mẫu:Tham_khảo

Thẻ <ref> giờ đã hỗ trợ gom các chú thích theo nhóm và hiển thị các nhóm là các danh sách độc lập rời nhau — xem Wikipedia:Chú thích cuối bài#Danh sách tham khảo và ghi chú giải thích rời nhau.

Định dạng chung cho thẻ tham khảo sẽ là:

<ref group=tênnhóm>

Và đối với bản mẫu Tham khảo:

{{Tham khảo|group=tênnhóm}}
Trong đó tênnhóm là định danh nhóm như "ghi chú", "nb" hoặc "nhãn" (phải dùng dấu ngoặc kép trong trường hợp tên nhóm có chứa khoảng trắng).

Ví dụ, để tạo một danh sách ghi chú định dạng riêng rẽ, các tham khảo sẽ được định dạng thành:

<ref group=note>

Để tạo danh sách được định dạng:

== Tham khảo =={{Tham khảo|group=note}}

Tuy có thể tạo và liệt kê bao nhiêu nhóm cũng được, nên giữ số lượng nhóm ở mức tối thiểu.

Một số loại nhóm tham khảo

Loại nhómBản mẫu đánh dấu ghi chú cuối trang
hoặc mã
Bản mẫu danh sách tham khảoCác nhãn mẫu
none<ref>...</ref>{{tham khảo}}1 2 3 4 5 6 7 8 9 10
none{{refn}} for nested references{{tham khảo}}1 2 3 4 5 6 7 8 9 10
lower-alpha{{efn}}{{notelist}}a b c d e f g h i j
upper-alpha{{efn-ua}}{{notelist-ua}}A B C D E F G H I J
lower-roman{{efn-lr}}{{notelist-lr}}i ii iii iv v vi vii viii ix x
upper-roman{{efn-ur}}{{notelist-ur}}I II III IV V VI VII VIII IX X
lower-greek[lower-alpha 1]{{efn-lg}}{{notelist-lg}}α β γ δ ε ζ η θ ι κ
  1. Not supported by Internet Explorer 7 and below
  • {{efn}} supports |name= and |group=, which work the same as the parameters in <ref>. Do not enclose values in quotes.
  • {{notelist}} supports the column parameter, |refs= and |group= which work the same as the parameters in {{tham khảo}}. Do not enclose values in quotes.

In these examples, the footnote labels match between the footnote marker and the reference list:

Với nhãn lower-alpha
Cú phápKết quả
Lorem ipsum dolor sit amet.{{efn|Footnote 1}} Consectetur adipisicing elit.{{efn|Footnote 2}} Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.{{efn|Footnote 3}}{{notelist}}

Lorem ipsum dolor sit amet.[lower-alpha 1] Consectetur adipisicing elit.[lower-alpha 2] Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.[lower-alpha 3]

  1. Footnote 1
  2. Footnote 2
  3. Footnote 3
Với nhãn lower-roman
Cú phápKết quả
Lorem ipsum dolor sit amet.{{efn-lr|Footnote 1}} Consectetur adipisicing elit.{{efn-lr|Footnote 2}} Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.{{efn-lr|Footnote 3}}{{notelist-lr}}

Lorem ipsum dolor sit amet.[lower-roman 1] Consectetur adipisicing elit.[lower-roman 2] Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.[lower-roman 3]

  1. Footnote 1
  2. Footnote 2
  3. Footnote 3
Với tham khảo đặt tên
Cú phápKết quả
Lorem ipsum dolor sit amet.{{efn|name=fn1|Footnote 1}} Consectetur adipisicing elit.{{efn|Footnote 2}} Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.{{efn|name=fn1}}{{notelist}}

Lorem ipsum dolor sit amet.[lower-alpha 1] Consectetur adipisicing elit.[lower-alpha 2] Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.[lower-alpha 1]

  1. 1 2 Footnote 1
  2. Footnote 2
Với tham khảo đặt tên, tham khảo được định nghĩa trong notelist
Cú phápKết quả
Lorem ipsum dolor sit amet.{{efn|name=fn1}} Consectetur adipisicing elit.{{efn|name=fn2}} Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.{{efn|name=fn1}}{{notelist|refs={{efn|name=fn1|Very long footnote 1}}{{efn|name=fn2|Very long footnote 2}}}}

Lorem ipsum dolor sit amet.[lower-alpha 1] Consectetur adipisicing elit.[lower-alpha 2] Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.[lower-alpha 1]

  1. 1 2 Very long footnote 1
  2. Very long footnote 2